class AdsMailer < ActionMailer::Base
  default from: "admin@peaksel.com"

  def deliver_misuse_signal(ad)
    recipients  @default
    from        @default
    subject     "Un abus a été signalé"
    body        :ad => ad
  end

  def deliver_transaction_confirmation(ad, seller, buyers)
    recipients  seller, buyers
    from        @default
    subject     "Transaction validée"
    body        :ad => ad, :seller => seller, :buyers => buyers
  end
end
